package com.hl.ruoyizmhshop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单对象 order
 * 
 * @author ruoyi
 * @date 2025-08-06
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Integer orderId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Integer userId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Integer goodsId;

    /** 商家ID */
    @Excel(name = "商家ID")
    private Integer businessId;

    /** 商品规格信息 */
    @Excel(name = "商品规格信息")
    private String goodsSpecs;

    /** 支付价格 */
    @Excel(name = "支付价格")
    private Double orderPrice;

    /** 订单创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderCreateTime;

    /** 订单付款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单付款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderPayTime;

    /** 订单发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderPostTime;

    /** 订单成交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单成交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderSuccessTime;

    /** 运费 */
    @Excel(name = "运费")
    private Double orderPostPrice;

    /** 订单状态(0-待支付,1-已支付,2-已发货,3-已完成,4-已取消) */
    @Excel(name = "订单状态(0-待支付,1-已支付,2-已发货,3-已完成,4-已取消)")
    private Integer orderStatus;

    /** 订单备注 */
    @Excel(name = "订单备注")
    private String orderComment;

    /** 订单单号 */
    @Excel(name = "订单单号")
    private String orderNumber;

    /** 订单物流单号 */
    @Excel(name = "订单物流单号")
    private String orderTrackNumber;

    /** 订单是否删除(0-未删除,1-已删除) */
    @Excel(name = "订单是否删除(0-未删除,1-已删除)")
    private Integer orderType;

    /** 地址ID */
    @Excel(name = "地址ID")
    private Integer addressId;
    private  String username;
    private  Integer goodsVirtual;
    private  String userphone;
    private  String useraddress;
    private  String goodsprice;
    private  String goodsnumber;
    private  String goodsname;
    private  String goodsimg;

    public Integer getGoodsVirtual() {
        return goodsVirtual;
    }

    public void setGoodsVirtual(Integer goodsVirtual) {
        this.goodsVirtual = goodsVirtual;
    }

    public String getGoodsimg() {
        return goodsimg;
    }

    public void setGoodsimg(String goodsimg) {
        this.goodsimg = goodsimg;
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    public String getGoodsprice() {
        return goodsprice;
    }

    public void setGoodsprice(String goodsprice) {
        this.goodsprice = goodsprice;
    }

    public String getGoodsnumber() {
        return goodsnumber;
    }

    public void setGoodsnumber(String goodsnumber) {
        this.goodsnumber = goodsnumber;
    }

    public String getUseraddress() {
        return useraddress;
    }

    public void setUseraddress(String useraddress) {
        this.useraddress = useraddress;
    }

    public void setOrderId(Integer orderId)
    {
        this.orderId = orderId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserphone() {
        return userphone;
    }

    public void setUserphone(String userphone) {
        this.userphone = userphone;
    }


    public Integer getOrderId()
    {
        return orderId;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setGoodsId(Integer goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Integer getGoodsId() 
    {
        return goodsId;
    }

    public void setBusinessId(Integer businessId) 
    {
        this.businessId = businessId;
    }

    public Integer getBusinessId() 
    {
        return businessId;
    }

    public void setGoodsSpecs(String goodsSpecs) 
    {
        this.goodsSpecs = goodsSpecs;
    }

    public String getGoodsSpecs() 
    {
        return goodsSpecs;
    }

    public void setOrderPrice(Double orderPrice) 
    {
        this.orderPrice = orderPrice;
    }

    public Double getOrderPrice() 
    {
        return orderPrice;
    }

    public void setOrderCreateTime(Date orderCreateTime) 
    {
        this.orderCreateTime = orderCreateTime;
    }

    public Date getOrderCreateTime() 
    {
        return orderCreateTime;
    }

    public void setOrderPayTime(Date orderPayTime) 
    {
        this.orderPayTime = orderPayTime;
    }

    public Date getOrderPayTime() 
    {
        return orderPayTime;
    }

    public void setOrderPostTime(Date orderPostTime) 
    {
        this.orderPostTime = orderPostTime;
    }

    public Date getOrderPostTime() 
    {
        return orderPostTime;
    }

    public void setOrderSuccessTime(Date orderSuccessTime) 
    {
        this.orderSuccessTime = orderSuccessTime;
    }

    public Date getOrderSuccessTime() 
    {
        return orderSuccessTime;
    }

    public void setOrderPostPrice(Double orderPostPrice) 
    {
        this.orderPostPrice = orderPostPrice;
    }

    public Double getOrderPostPrice() 
    {
        return orderPostPrice;
    }

    public void setOrderStatus(Integer orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderStatus() 
    {
        return orderStatus;
    }

    public void setOrderComment(String orderComment) 
    {
        this.orderComment = orderComment;
    }

    public String getOrderComment() 
    {
        return orderComment;
    }

    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }

    public void setOrderTrackNumber(String orderTrackNumber) 
    {
        this.orderTrackNumber = orderTrackNumber;
    }

    public String getOrderTrackNumber() 
    {
        return orderTrackNumber;
    }

    public void setOrderType(Integer orderType) 
    {
        this.orderType = orderType;
    }

    public Integer getOrderType() 
    {
        return orderType;
    }

    public void setAddressId(Integer addressId) 
    {
        this.addressId = addressId;
    }

    public Integer getAddressId() 
    {
        return addressId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("goodsId", getGoodsId())
            .append("businessId", getBusinessId())
            .append("goodsSpecs", getGoodsSpecs())
            .append("orderPrice", getOrderPrice())
            .append("orderCreateTime", getOrderCreateTime())
            .append("orderPayTime", getOrderPayTime())
            .append("orderPostTime", getOrderPostTime())
            .append("orderSuccessTime", getOrderSuccessTime())
            .append("orderPostPrice", getOrderPostPrice())
            .append("orderStatus", getOrderStatus())
            .append("orderComment", getOrderComment())
            .append("orderNumber", getOrderNumber())
            .append("orderTrackNumber", getOrderTrackNumber())
            .append("orderType", getOrderType())
            .append("addressId", getAddressId())
            .append("username", getUsername())
            .append("userphone", getUserphone())
            .append("useraddress", getUseraddress())
            .append("goodsprice", getGoodsprice())
            .append("goodsnumber", getGoodsnumber())
            .append("goodsname", getGoodsname())
            .append("goodsimg", getGoodsimg())
            .append("goodsVirtual", getGoodsVirtual())
            .toString();
    }
}
